<template>
  <div class="label-dialog">
    <el-dialog :visible.sync="dialogVisible" :before-close="handleClose" title="标签设置" width="580px">
      <el-form :model="form" label-width="80px">
        <el-form-item label="标签">
          <el-input v-model="form.label" style="width:350px"/>
          <p style="margin:0;color:#737373;">标签来自网校课程标签，由网校管理员统一管理。</p>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose">取 消</el-button>
        <el-button type="primary" @click="saveSubmit">保 存</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  props: {
    dialog: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      form: {
        label: ''
      }
    }
  },
  computed: {
    dialogVisible() {
      return this.dialog
    }
  },
  methods: {
    handleClose() {
      this.$emit('closeLabel')
    },
    saveSubmit() {
      console.log('save')
    }
  }
}
</script>

<style lang="scss">
</style>
